package com.wushi.lenovo.asia5b.app_ui.credit.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.wushi.lenovo.asia5b.R
import com.wushi.lenovo.asia5b.app_model.other.CreditType

/**
 * Created by zhangyuncai on 2020/8/14.
 */
class CreditAdapter(list:ArrayList<CreditType>):
BaseQuickAdapter<CreditType,BaseViewHolder>(R.layout.item_credit_adapter,list){
    override fun convert(helper: BaseViewHolder, item: CreditType) {
        helper.setImageResource(R.id.iv_credit_item,item.imgIcon)
        helper.setText(R.id.tv_credit_item,item.itemName)
    }
}